#pragma once
#ifndef SDLGAMEOBJECT_H
#define SDLGAMEOBJECT_H
#include "gameobject.h"
#include "LoadedParams.h"
#include "Vector2D.h"


class SDLGameObject : public GameObject
{
public:
	SDLGameObject(const LoadedParams* Params);
	~SDLGameObject(void);

	virtual void Draw();
	virtual void Update();
	virtual void Shutdown();
	virtual bool CheckCollision(SDLGameObject* o);
	virtual bool isActive();

	Vector2D getPosition() {return position;}
	void setPosition(float x, float y) { position.setX(x); position.setY(y); }
	int getWidth() {return Width;}
	int getHeight() {return Height;}

	

protected:

	Vector2D position, velocity, acceleration;

	int Width;
	int Height;

	int currentRow;
	int currentFrame;

	std::string textureID;
};
#endif

